package net.gd.dao;

import java.sql.SQLException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import net.gd.domain.dbPermissionDomain;
import net.gd.domain.topicDetail;

public interface DBPermissionDAO {

	public void insert(String sql, List<Object>params) throws Exception;
	
	public void update(String sql, HashMap<String, dbPermissionDomain> perHM) throws Exception;
	
	public Map<String, Object> search(String sql) throws Exception;

	void inserPermission(String sql, List<dbPermissionDomain> perList) throws Exception;

	void deleteTopic(String sql) throws SQLException;

	/**
	 * @description 
	 * @author Uriel
	 * @date 2018年2月4日 下午4:43:28
	 * @version V3.0
	 * @param sql
	 * @return 
	 * @throws SQLException
	 */
	Map<String, Object> selectRoles(String sql) throws SQLException;

	/**
	 * @description 
	 * @author Uriel
	 * @date 2018年2月4日 下午9:00:09
	 * @version V3.0
	 * @param sql
	 * @param topic
	 * @throws Exception
	 */
	void updateTopic(String sql, HashMap<String, topicDetail> topic)
			throws Exception;

}
